package com.lyl.goods.pojo;


import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jetbrains.annotations.NotNull;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class User {
    @NotNull
    private Integer id;//主键ID
    @NotBlank(message = "用户名不能为空")
    private String username;//用户名
    @NotBlank(message = "密码不能为空")
    private String password;//密码

    private LocalDateTime createTime;//创建时间

}
